#! /usr/bin/python
#coding=utf-8 
import os, sys
import docx
filedir = 'd:/makesi'
filenames = os.listdir( filedir )
doc = docx.Document()

for filename in filenames:
    filepath = filedir+'/'+filename
    print(filepath)
    file=docx.Document(filepath)
    for para in file.paragraphs:
        print('test')
        doc.add_paragraph(para.text)

doc.save("m.docx")
